package cn.wolfcode.transfer.mapper;

import cn.wolfcode.transfer.domain.ExamQuestion;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExamQuestionMapper {
    int insert(@Param("examId") Long exam, @Param("questionId")Long questionId, @Param("sequence") Integer sequence, @Param("score") Integer score);

    List<ExamQuestion> selectAll();

    void deleteByExamId(Long id);

    void updateByQuestionId(ExamQuestion examQuestion);

    List<ExamQuestion> selectByExamId(Long id);

}